﻿using MailTool.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MailTool
{
    public partial class Site : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                MailModel.User userSession = SessionState.CurrentUser;
                if (userSession.UserName == null)
                {
                    Response.Redirect("Login.aspx");
                }

            }
        }
    }
}